package com.itheima.d06;

import java.sql.SQLOutput;

public class Test {
    public static void main(String[] args) throws ClassNotFoundException {
        Class<Dog> dogClass = Dog.class;
        System.out.println("Dog 的Class对象"+dogClass);

        Class dogClass2=Class.forName("com.itheima.d06.Dog");
        System.out.println("Dog 的Class对象"+dogClass2);

        Dog dog = new Dog();
        Class dogClass3 = dog.getClass();
        System.out.println("Dog 的Class对象"+dogClass3);

    }
}
